package com.molichuxing.services.infrastructure.service;


import com.molichuxing.framework.dto.Paged;
import com.molichuxing.services.infrastructure.dto.request.create.CarsMileageMonitoringEnterpriseDto;
import com.molichuxing.services.infrastructure.dto.response.CarsMileageMonitoringEnterpriseResDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 企业订单车辆里程监控表 服务类
 * </p>
 *
 * @author wanghualin
 * @since 2020-06-03
 */
public interface ICarsMileageMonitoringEnterpriseService {
    /**
     * 查询车辆列表
     * @param map
     * @return
     */
    Paged<CarsMileageMonitoringEnterpriseResDto> listCarsMileageMonitoring(Map<String, Object> map, Integer pageNum, Integer pageSize);

    /**
     * 添加
     * @param dto
     */
    Integer  saveCarsMileageMonitoringEnterprise(CarsMileageMonitoringEnterpriseDto dto);
    /**
     * 修改
     * @param dto
     */
    Integer  updateCarsMileageMonitoringEnterprise(CarsMileageMonitoringEnterpriseDto dto);

    /**
     * 查询最近一次生成的报警
     *
     * @param order
     * @return
     */
    CarsMileageMonitoringEnterpriseDto getMileageMonitoringEnterprise(Long order);

    /**
     * 得到车辆
     * @return
     */
    List<CarsMileageMonitoringEnterpriseResDto> listMileageUnMonitoring();
}
